#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int x,count=0,a,b,c;
	scanf("%d", &x);
	for(a=x/5;a>=1;a--)
		for(b=x/2;b>=1;b--)
			for(c=x;c>=1;c--)
				if ((5 * a + b * 2 + c) == x)
				{
					printf("fen5:%d,fen2:%d,fen1:%d,tatal:%d\n", a, b, c,a+b+c);
					count++;
				}
	printf("count:%d", count);
	return 0;
}